/*
 * @Author:
 * @Date: 2022-06-07 20:25:55
 * @LastEditors:
 * @LastEditTime: 2022-09-01 16:36:55
 * @FilePath: \imechos-admin\src\api\sys\sysMessages.js
 * @Description:
 *
 * Copyright (c) 2022 by  , All Rights Reserved.
 */

import request from '@/utils/request';

export function listData({page, perPage}) {
  return request({
    url: `/system-message`,
    method: 'get',
    params: {page, perPage}
  })
}

export function postAddData(form) {
  return request({
    url: '/system-message',
    method: 'post',
    data: form
  });
}

export function putEditData(id,form) {
  return request({
    url: `/system-message/${id}`,
    method: 'put',
    data: form
  });
}

export function deleteData(query) {
  return request({
    url: '/system-message',
    method: 'delete',
    data: query
  });
}

export function postSendData(id,form) {
  return request({
    url: `/system-message/send/${id}`,
    method: 'post',
    data: form
  });
}


